<?php

/* array_multisort.php ( array &$array)
 * Sắp xếp mảng $array theo giá trị giảm dần, làm thay đổi khóa
 */


echo "Sorting Arrays: array_multisort.php()<br>";
echo "----------------------------------------------------------------------<br>";
$arr1 = array(10, 100, 1000, 0);
$arr2 = array(1, 3, 2, 4);
$arr3 = array(8, 7, 9, 10);

echo "Intput:";
echo "<pre>";
print_r($arr1);
echo "</pre>";
echo "<pre>";
print_r($arr2);
echo "</pre>";
echo "<pre>";
print_r($arr3);
echo "</pre>";
array_multisort($arr1, $arr2, $arr3);

echo "----------------------------------------------------------------------<br>";
echo "<pre>";
print_r($arr1);
echo "</pre>";
echo "<pre>";
print_r($arr2);
echo "</pre>";
echo "<pre>";
print_r($arr3);
echo "</pre>";
